﻿@{
    ViewBag.Title = "InstructionsList";
    List<KingRoad.EPM.ProjectInfoEntity.PROJECT_INSTRUCTIONS> InstructionsList = ViewBag.InstructionsList as List<KingRoad.EPM.ProjectInfoEntity.PROJECT_INSTRUCTIONS>;
    int index = 1;
}
@using KingRoad.EPM.Common.Helper
<table class="tables tables-bordered tables-hover" id="WorkAreaTable">
    <thead>
        <tr>
            <th style="display: none; text-align: center">
            </th>
            <th style="width: 5%; text-align: center">
                序号
            </th>
            <th style="width: 5%; text-align: center">
                排序ID
            </th>
            <th style="width: 45%; text-align: center">
                图片路径
            </th>
            <th style="width: 10%; text-align: center">
                图片缩略图
            </th>
            <th style="width: 20%; text-align: center">
                说明
            </th>
            <th style="width: 10%; text-align: center">
                操作
            </th>
        </tr>
    </thead>
    <tbody>
        @{
            if (InstructionsList != null)
            {
                for (int i = 0; i < InstructionsList.Count; i++)
                {
            <tr class=" " rel="1">
                <td style="display: none">@InstructionsList[i].Instructions_ID
                </td>
                <td style="text-align: center">@index
                </td>
                <td style="text-align: center">@InstructionsList[i].Instructions_SortCode
                </td>
                <td style="text-align: center">@InstructionsList[i].Instructions_Path
                </td>
                <td style="text-align: center">
                    <img src="@InstructionsList[i].Instructions_Path"alt=""style="width:40px;height:40px"/>
                </td>
                <td style="text-align: center">@InstructionsList[i].Instructions_Details
                </td>
                <td style="text-align: center">
                    <nobr>
                            @Html.PermissionButton("Information.Setup.EditSetting", "Edit_Information_Setup_index", "add", "javascript:fun_EditData_InstructionsList_index(" + InstructionsList[i].Instructions_ID + ");", "", "", "", "", "编辑")
                            @Html.PermissionButton("Information.Setup.DeleteSetting", "Delete_Information_Setup_index", "edit", "javascript:fun_DeleteData_InstructionsList_index(" + InstructionsList[i].Instructions_ID + ");", "", "", "", "", "删除")</nobr>
                </td>
            </tr>
                    index++;
                }
            }
        }
    </tbody>
</table>
